package com.example.app.mapper;

import com.example.app.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户表 数据层
 */
@Mapper
public interface UserMapper {

    User findByUsername(String username);

    void insert(User user);

    List<User> findByUserIds(List<Long> ids);

    User findByUserId(Long userId);
}
